#!/bin/bash

#funtion: username passwd

read -p "please input your user :" u_usr
read -p "please input your passwd :" u_pass

useradd $u_usr   2>/dev/null
echo "$u_pass" |passwd $u_usr  &>/dev/null

echo "create usr ok"
